function printRankings(filename,colname,rankings,newRanking)

fid = fopen(filename,'w');
fprintf(fid,'PLAYER,POS,TEAM,BYE,%s,DRAFT_ID,MAX_QB,2,MAX_TE,2,MAX_K,1,MAX_DST,1\n',colname);

for i=1:length(rankings.name)
    if newRanking
        score = rankings.newRank(i);
    else
        score = rankings.rank(i);
    end
    fprintf(fid,'%s,%s,%s,%d,%3.1f,%d\n', ...
        rankings.name{i}, positionName(rankings.pos(i)), rankings.team{i}, ...
        rankings.bye(i), score, rankings.id(i));
end

fclose(fid);